package com.ulife.order.api.core.refund;

import com.ulife.common.gateway.utils.annotation.Description;

/**
 * Created by Ulife- on 2016/3/8.
 */
@Description("退款状态")
public enum RefundStatus {
    @Description("已创建")
    Created(1),
    @Description("已成功")
    Succeed(2),
    @Description("失败")
    Failure(3);

    private int value = 1;

    private RefundStatus(int value) {
        this.value = value;
    }

    public static RefundStatus valueOf(int value){
        switch (value){
            case 1:return Created;
            case 2:return Succeed;
            case 3:return Failure;
            default:return null;
        }
    }
    public int value(){
        return this.value;
    }
}